package com.tz.movie.domain;

import com.alibaba.fastjson.JSONObject;

public class Comment {
  private Integer id;

  private String content;

  private Integer uid;

  private Integer mid;

  @Override
  public String toString() {

    JSONObject jsonObject = new JSONObject();
    jsonObject.put("id", getId());
    jsonObject.put("content", getContent());
    jsonObject.put("uid", getUid());
    jsonObject.put("mid", getMid());
    return jsonObject.toJSONString();
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content == null ? null : content.trim();
  }

  public Integer getUid() {
    return uid;
  }

  public void setUid(Integer uid) {
    this.uid = uid;
  }

  public Integer getMid() {
    return mid;
  }

  public void setMid(Integer mid) {
    this.mid = mid;
  }
}